<template>
    <div class="studentifo">
        <p>学生姓名：{{studentName}}</p>
        <p>年龄：{{age}}</p>
    </div>
</template>

<script>
export default {
    name:"StudentNa",
    data(){
        return {
            studentName:'su',
            age:'21'
        }
    }
}
</script>

<style>
    .studentifo{
        background-color: lightgreen;
    }
</style>